# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy

class TestItem(scrapy.Item):
    name = scrapy.Field()

class Listbox01(scrapy.Item):
    istbox_01_dept_id = scrapy.Field()
    listbox_01_title = scrapy.Field()



class Subject(scrapy.Item):
    menubox_03_dept_id = scrapy.Field()
    menubox_03_idlist = scrapy.Field()
    menubox_01_list = scrapy.Field()
    listbox_01_title = scrapy.Field()

class OneCourseInfo(scrapy.Item):
    item_attention = scrapy.Field()
    item_url = scrapy.Field()
    item_name = scrapy.Field()
    item_txts = scrapy.Field()
    item_number = scrapy.Field()
    item_man = scrapy.Field()
    item_unit = scrapy.Field()


class Quest_infoItem(scrapy.Item):
    """
    question_detail_list['q_name'] = "".join(hyu.selectInfo(pattern_course_list[1], str)).strip() # question_topic_content
    question_detail_list['q_IDValue'] = "".join(hyu.selectInfo(pattern_course_list[2], str)).strip() # questionID_value
    question_detail_list['result_value'] = "".join(hyu.selectInfo(pattern_course_list[3], str)).strip() # result_value
    question_detail_list['q_nameid'] = hyu.selectInfo(pattern_course_list[4], str)  # 待选答案的value标记列表
    question_detail_list['q_choiceValueList'] = hyu.selectInfo(pattern_course_list[5], "".join(str)) # 待选答案的content内容列表
    question_detail_list['q_choiceNameList'] = hyu.selectInfo(pattern_course_list[6], "".join(str)) #待选答案的name标记列表
    result_question_tmp = hyu.selectInfo(pattern_course_list[7], str)
    question_detail_list['q_resultName'] = "".join(hyu.selectInfo(pattern_course_list[8], result_question_tmp[0])).strip()  #result_name
    question_detail_list['q_IDName'] = "".join(hyu.selectInfo(pattern_course_list[9], result_question_tmp[1])).strip()  #questionID_name
    question_detail_list['q_question_test'] = '0' #从0开始
    question_detail_list['q_question_correct'] = '' #从1开始
    """
    q_name = scrapy.Field()
    q_IDValue = scrapy.Field()
    result_value = scrapy.Field()
    q_nameid = scrapy.Field()
    q_choiceValueList = scrapy.Field()
    q_choiceNameList = scrapy.Field()
    q_resultName = scrapy.Field()
    q_IDName = scrapy.Field()
    q_question_test = scrapy.Field()
    q_question_correct = scrapy.Field()
    q_question_correct_name = scrapy.Field()
    question_type = scrapy.Field()
    Item_Value = scrapy.Field()
    Item_Name = scrapy.Field()
    Course_Value = scrapy.Field()
    Course_Name = scrapy.Field()
    Study_Name = scrapy.Field()
    Study_Value = scrapy.Field()
    Course_score = scrapy.Field()
    Class_Type = scrapy.Field()
    a_name_all = scrapy.Field()

class Quest_listItem(scrapy.Item):
    q_list = scrapy.Field()